<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员首页，可查看所有报修单</title>
</head>
<body>
欢迎管理员<br>
<a th:href="@{/adm/checkRepairmans}"> 维修人信息</a><br>
<a th:href="@{/adm/getUndealrepairs}">查看未受理的单</a><br>
<a th:href="@{/adm/checkUserByType}">查看用户</a><br>
<a th:href="@{/adm/toAddUsers}">添加用户</a><br>
<a th:href="@{/adm/checkNotices}">公告管理</a><br>
<table>
    <tr>
        <th>报修编号</th>
        <th>报修时间</th>
        <th>报修人学号</th>
        <th>维修人工号</th>
        <th>报修地点</th>
        <th>报修人电话</th>
        <th>空闲时间</th>
        <th>报修详情</th>
        <th>报修状态</th>

    </tr>
    <!--/*@thymesVar id="repairsPage" type=""*/-->
    <tr th:each="repair:${RepairsPage.records}" >
        <td th:text="${repair.repairsId}">Onions</td>
        <td th:text="${repair.repairsTime}">Onions</td>
        <td th:text="${repair.repairsUserId}">Onions</td>
        <td th:text="${repair.serviceUserId}">Onions</td>
        <td th:text="${repair.repairsPlace}">Onions</td>
        <td th:text="${repair.repairsTelephone}">Onions</td>
        <td th:text="${repair.freetime}">Onions</td>
        <td th:text="${repair.repairsDetail}">Onions</td>
        <td th:text="${repair.repairsStatus}">Onions</td>
    </tr>
</table>
当前第[[${RepairsPage.current}]]页 总计 [[${RepairsPage.pages}]]页
共[[${RepairsPage.total}]]条记录<br>
<ul>
    <li class="prev disabled"><a
            th:href="@{/adm/main(pn=${(RepairsPage.current)-1})}">←
        Previous</a></li>
    <!--                                                ${num == RepairsPage.current?'active':''}将当前页页数的方框高亮，类似于三目运算-->
    <!--                                                num:${#numbers.sequence(1,5)}显示多少个页码方框,这个例子是显示1到5的页码方框 -->
    <li th:class="${num == RepairsPage.current?'active':''}"
        th:each="num:${#numbers.sequence(1,5)}">
        <a th:href="@{/adm/main(pn=${num})}">[[${num}]]</a>
    </li>
    <li class="next"><a
            th:href="@{/adm/main(pn=${RepairsPage.pages})}">End </a>
    </li>
    <li class="next"><a
            th:href="@{/adm/main(pn=${RepairsPage.current+1})}">Next
        → </a></li>
</ul>

</body>
</html>